Exploring the online world is my passion. have experience of #content writing #SEO #Digital Marketing #On-Page #Lead Generation #Content Analyst #Marketing Analyst...
I could never stop at one point, continuously wanted to acquire more and more skills. My work for any organization will be full of passion and hard work.
Hemant Patel
07-Dec-2017The difference is that IEnumerable<string> is merely a sequence of string but a List<string> is indexable by an int index, can be added to and removed from and have items inserted at a particular index.
A List<string> is a specific random-access variable-size collection.
A List<string> is a concrete implementation of IEnumerable<string>.
An IEnumerable<string> is general sequence of string that can be iterated but doesn't allow random access.